#include <iostream>
#include <set>

using namespace std;

int main()
{

    char str[100] = { 0 };
    cin.getline(str, sizeof(str));

    set<char> s;
    for (auto e : str)
    {
        s.insert(e);
    } 
    auto iter = s.begin();
    while (iter != s.end())
    {
        cout << *iter << " ";
        iter++;
    }

    return 0;
}